﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FwProject
{
    public class FwConsts
    {
        public const string ApplicationName = "FW";

        public const string LocalizationSourceName = "FW";

        public const string FactroyInfoFilter = "FactroyInfoFilter";

        public const string FactoryinfoId = "FactoryinfoId";
        /// <summary>
        /// 数据库中储存上传文件保存路径最大长度
        /// </summary>
        public const int MaxFileSavePathLength = 200;

        /// <summary>
        /// 保存文件根路径(上传文件跟路径)
        /// </summary>
        public const string SaveFileUrlPrefix = "uploads/";

        /// <summary>
        /// 临时文件根路径
        /// </summary>
        public const string TempFileUrlPrefix = "uploads/temp/";

        /// <summary>
        /// MS SQLSERVER 允许的时间最小值
        /// </summary>
        public static readonly DateTime DateTimeMin = System.Data.SqlTypes.SqlDateTime.MinValue.Value;
        /// <summary>
        /// MS SQLSERVER 允许的时间最大值
        /// </summary>
        public static readonly DateTime DateTimeMax = System.Data.SqlTypes.SqlDateTime.MaxValue.Value;
    }
}
